﻿using Framework.Utility.ViewModels;
using System.ComponentModel.DataAnnotations.Schema;

namespace Support.Models.Entities
{
    [Table("Job_MonitorServer")]
    public class Job_MonitorServer : BaseEntity<int>
    {
        /// <summary>
        /// 任务id
        /// </summary>
        public string JobId { get; set; } = Guid.NewGuid().ToString();
        /// <summary>
        /// 分组名称
        /// </summary>
        public string GroupName { get; set; }
        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServerName { get; set; }
        /// <summary>
        /// 服务类型
        /// </summary>
        public string ServerType { get; set; }

        public string ServerUrl { get; set; }
        public string CheckPath { get; set; }
        public string CronExpression { get; set; }
        public JobFireStatus Status { get; set; } = JobFireStatus.No;
        public string? CheckTime { get; set; } 
    }

}
